package com.team7.system.service;

import com.team7.common.entity.User;
import com.team7.common.vo.CommonResult;
import com.team7.common.vo.UserVo;

import java.util.List;

/**
 * @program: team7-Object
 * @description:
 * @author: 杨海涛
 * @create: 2021-10-18 23:00
 **/
public interface UserService {
    List<String> findUserPermissionById(String userId);

    User findUserByUserName(String username);

    CommonResult findUserByPage(Integer page, Integer limit, UserVo userVo);

    CommonResult updateUserStatusByid(String id, Integer deleted);

    CommonResult addUserByUser(User user);

    CommonResult updateUserByUser(User user);

    CommonResult deleteUserById(String id);

    CommonResult updateUserPassword(String oldPassword, String newPassword);
}
